home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1995 May / cd Ware (Juegos) Epimundo.iso / DOS / C / DIALOG.ZIP / DBPRO2-@.EXE / DBBOUND.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-05-31  |  687 b   |  38 lines

  1. /*
  2.  
  3. WARNING!!!!!!! this program will not run as it is now written.
  4. Read the documentation on "Embedding Resource Files" to learn
  5. how to use this sample file.
  6.  
  7. */
  8.  
  9. #include "pro.h"
  10. #include "xglobals.h"
  11. #include "dbpro.h"
  12. #include "dbbuild.h"
  13.  
  14.  
  15. static unsigned char head = 0, tail = 0;
  16. static unsigned int queue[256];
  17.  
  18. void init_dbpro()
  19. {
  20.     /* initialize The WINDOW PRO - required */
  21.     wn_init();
  22.  
  23.     /* initialize The DB PRO message queue - required */
  24.     db_switchqueue(&head, &tail, queue);
  25. }
  26.  
  27. main(argv,argc)
  28. int argv;
  29. char *argc[];
  30. {
  31.     dialog_box *db_ptr;
  32.  
  33.     init_dbpro();
  34.  
  35.     db_ptr = create_db(argc[0],0L,argc[0],0L,atoi(argc[1]));
  36.     db_run(db_ptr,0);
  37. }
  38.